/**
 * Copyright (c) 2006-2007 Jinyi.lu
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of GNU LGPL license by gun.org
 * which accompanies this distribution, and is available at
 * http://gnu.feld-it.at/copyleft/lesser.html
 * 
 * Project Homepage : http://code.google.com/p/demou
 * Source Code: svn checkout http://demou.googlecode.com/svn/trunk/ demou
 * Mailing list : jinyi.lu@gmail.com
 *                stonelu@126.com
 *
 *  
 * Contributors:
 *     JinYi.Lu - initial API and implementation
 */
package cn.tworen.demou.cmd;

import net.sf.cindy.Buffer;
import cn.tworen.demou.rtmp.Client;

/**
 * Created on  2007-1-21
 *
 * Title       : BufferCmd.java
 * Description : 
 * 
 * @author     : LuJinYi
 * @version    : 1.0
 * @Date       : 2007-1-21
 * History     : 
 * 
 */
public class BufferCmd extends AbsCmd implements IBufferCmd{
	private Buffer bufferBody = null;
	public Buffer getBody() {
		return bufferBody;
	}
	public void setBody(Buffer bufferBody) {
		this.bufferBody = bufferBody;
	}
	public void release() {
		if (this.bufferBody != null && !this.bufferBody.isReleased()) this.bufferBody.release();
	}
}
